<div class="box">				
	<div class="box">
			<div class="box-top"></div>
			<div class="box-content">
						<div class="head">
							<h2><?php echo $this->_var['page_title']; ?></h2>	
							<ul class="filter">
								<li <?php if ($this->_var['status'] == 0): ?>class="current"<?php endif; ?>><a href="<?php 
$k = array (
  'name' => 'url_pack',
  'value' => 'uc_coupon#index',
  'status' => '0',
);
echo $k['name']($k['value'],$k['status']);
?>">所有</a></li>
								<li <?php if ($this->_var['status'] == 1): ?>class="current"<?php endif; ?>><a href="<?php 
$k = array (
  'name' => 'url_pack',
  'value' => 'uc_coupon#index',
  'status' => '1',
);
echo $k['name']($k['value'],$k['status']);
?>">未使用</a></li>
								<li <?php if ($this->_var['status'] == 2): ?>class="current"<?php endif; ?>><a href="<?php 
$k = array (
  'name' => 'url_pack',
  'value' => 'uc_coupon#index',
  'status' => '2',
);
echo $k['name']($k['value'],$k['status']);
?>">已使用</a></li>
							</ul>					
						</div>
						<div class="sect">						
						<table cellspacing="0" cellpadding="0" border="0" class="coupons-table" >
								<tr>
									<th><?php echo $this->_var['LANG']['DEAL_ITEM']; ?></th>
									<th width=100><?php echo $this->_var['LANG']['COUPON_SN']; ?></th>
									<th width=100><?php echo $this->_var['LANG']['COUPON_PWD']; ?></th>									
									<th width=50><?php echo $this->_var['LANG']['COUPON_END_TIME']; ?></th>
									<th width=50><?php echo $this->_var['LANG']['COUPON_USE_TIME']; ?></th>
									<th width=50><?php echo $this->_var['LANG']['OPERATION']; ?></th>
								</tr>
								<?php $_from = $this->_var['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'coupon');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['coupon']):
?>
								<tr <?php if ($this->_var['key'] % 2 == 0): ?>class="alt"<?php endif; ?>>
									<td style="text-align:left;"><?php echo $this->_var['coupon']['deal_item']['name']; ?></td>
									<td><?php echo $this->_var['coupon']['sn']; ?></td>
									<td><?php echo $this->_var['coupon']['password']; ?></td>
									
									<td>
										<?php if ($this->_var['coupon']['end_time'] == 0): ?>
										<?php echo $this->_var['LANG']['NEVER_EXPIRED']; ?>
										<?php else: ?>
										<?php 
$k = array (
  'name' => 'to_date',
  'value' => $this->_var['coupon']['end_time'],
);
echo $k['name']($k['value']);
?>
										<?php endif; ?>
									</td>
									<td>
										<?php if ($this->_var['coupon']['confirm_time'] == 0): ?>
										<?php echo $this->_var['LANG']['NOT_USED']; ?>
										<?php else: ?>
										<?php 
$k = array (
  'name' => 'to_date',
  'value' => $this->_var['coupon']['confirm_time'],
);
echo $k['name']($k['value']);
?>
										<?php endif; ?>
									</td>
									<td>
										<?php if ($this->_var['coupon']['sms_count'] < app_conf ( "SMS_COUPON_LIMIT" )): ?>
										<a href="<?php 
$k = array (
  'name' => 'url_pack',
  'value' => 'uc_coupon#sms',
  'id' => $this->_var['coupon']['id'],
);
echo $k['name']($k['value'],$k['id']);
?>"><?php echo $this->_var['LANG']['SEND_COUPON_SMS']; ?></a><br/>
										<?php endif; ?>
										<?php if ($this->_var['coupon']['mail_count'] < app_conf ( "MAIL_COUPON_LIMIT" )): ?>
										<a href="<?php 
$k = array (
  'name' => 'url_pack',
  'value' => 'uc_coupon#mail',
  'id' => $this->_var['coupon']['id'],
);
echo $k['name']($k['value'],$k['id']);
?>"><?php echo $this->_var['LANG']['SEND_COUPON_MAIL']; ?></a><br/>
										<?php endif; ?>
										<a href="<?php 
$k = array (
  'name' => 'url_pack',
  'value' => 'uc_coupon#view',
  'id' => $this->_var['coupon']['id'],
);
echo $k['name']($k['value'],$k['id']);
?>" target="_blank"><?php echo $this->_var['LANG']['VIEW']; ?></a>
									</td>
								</tr>
								<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
						</table>
						
						<div class="blank"></div>
						<div class="pages"><?php echo $this->_var['pages']; ?></div>
						</div><!--end sect-->
			</div>
			<div class="box-bottom"></div>
	</div>
</div>